﻿using System;
using System.Collections.Generic;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using ContactList.Utils;
using PureMVC.Interfaces;
using PureMVC.Patterns;

namespace ContactList.View
{
    public class ApplicationMediator : Mediator
    {
        #region Members

        public new const string NAME = "ApplicationMediator";

        #endregion

        #region Public Methods

        public ApplicationMediator(Object viewComponent)
        {
            
        }

        public override System.Collections.Generic.IList<string> ListNotificationInterests()
        {
            return new List<string>(new string[]
                                        {
                                            Notifications.APP_STARTUP_COMPLETED
                                        });
        }

        public override void HandleNotification(INotification notification)
        {
            switch (notification.Name)
            {
                case Notifications.APP_STARTUP_COMPLETED:
                    //MessageBox.Show("Startup Completed. Welcome to PureMVC.");
                    break;
            }
        }

        #endregion
    }
}